Mule : Mule Endpoint URIs
This page last changed on Jul 24, 2006 by stephen fenech.
Mule Endpoint URIs are any valid URI and describes how to connect to the underlying transport. Most connectors in Mule can be created from an endpoint uri except where not enough connection information can be expressed clearly in a URI, such as jms connection properties. Endpoint URIs are set on Mule Endpoints which manage other connection instance information such as filters and transactions. Mule Endpoint URIs they usually in one of the following forms, though other provider implementations can introduce their own schemes.
scheme://[host][:port]/[endpoint name]/[address]?[params]
udp://localhost:65432 If host and port are set it is unlikely that a provider would be set though by setting the provider name would cause a specific provider to be used with the host and port. tcp://localhost:3212/myTcpEndpoint This would use the pre-configured endpoin myTcpEndpoint using tcp://localhost:3212 as the endpoint URI.
scheme://[endpoint name]/[address]?[params]
jms://jmsEndpoint/test.queue The URI specifies that a pre-configured endpoint called jmsEndpoint should be used and the address on the endpoint should be set to 'test.queue'. If you want to use the endpoint 'as is' just omit the address but leave the tailing forward slash i.e. jms://jmsEndpoint/ scheme://[username][:password]@[host][:port]?[params]The user name and password are used to log in to the remote server specified by the host and port params. The pop3 and smtp connectors use this sort or uri. pop3://ross:[email protected] scheme://[address]?[params]
vm://my.queue URI ParametersSo far we haven't talked about the params on the URI. There are two types of params that can be set -
Known Parameters
file:///C:/temp?endpointName=myFileEndpoint&transformers=FileToString,XmlToDom Other ParametersAny other parameters set on the URI will be set on the connector if a connector is created and also set on the endpoint itself as properties. Custom EndpointsEach connector can define its own EndpointBuilder. This builder is used by the MuleEndpointURI to compose the uri into an endpoint that the connector understands. There are default EndpointBuilder implementations that most connectors can use, such as socket, resource name and URL builders, plus there are special cases such as file urls where the provider cannot be expressed in the uri path. Endpoint EncodingWhen using Xml configuration certain character entities defined in the W3C SGML specification need to be escaped to their SGML code. The most relevant are listed here. Don't forget to remove the space before the ';'.
|
Document generated by Confluence on Nov 27, 2006 10:27 |